package cn.bdqn.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
     //                localhost/page?pageName=dev/dev_login
	//restFul风格:      localhost/page/dev/dev_login
	//   /WEB-INF/     dev/dev_login   .jsp
	@RequestMapping("/page/{model}/{pageName}")
	public String page(
			@PathVariable("model") String model,
			@PathVariable("pageName") String pageName){
		return model+"/"+pageName;
	}
}
